package com.wangyk.thymeleafproject.controller.pro;

import com.wangyk.rabbitmqcommon.model.project.Order;
import com.wangyk.thymeleafproject.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * category提供给其它服务的接口
 * */
@Controller
@RequestMapping("/orderpro")
public class OrderProController
{
    @Autowired
    private OrderService orderService;

    @RequestMapping("/select_by_primary_key")
    @ResponseBody
    public Order selectByPrimaryKey(@RequestParam("orderId") Integer orderId)
    {
        return orderService.selectByPrimaryKey(orderId);
    }
}
